home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Burning & Media
/
GB-PVR 1.2.13
/
GBPVR10213.msi
/
Cabs.w1.cab
/
Stub_download_aspx_cs.cs115
< prev
next >
Wrap
Text File
|
2006-07-15
|
2KB
|
52 lines
//===========================================================================
// This file was generated as part of an ASP.NET 2.0 Web project conversion.
// This code file 'App_Code\Migrated\public\Stub_download_aspx_cs.cs' was created and contains an abstract class
// used as a base class for the class 'Migrated_PublicDownload' in file 'public\download.aspx.cs'.
// This allows the the base class to be referenced by all code files in your project.
// For more information on this code pattern, please refer to http://go.microsoft.com/fwlink/?LinkId=46995
//===========================================================================
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Text;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace gbweb
{
abstract public class PublicDownload : System.Web.UI.Page
{
private static string macKeyModifier;
public static string Serialize(object value)
{
LosFormatter los = new LosFormatter(true, macKeyModifier);
MemoryStream stream = new MemoryStream();
los.Serialize(stream, value);
return Encoding.ASCII.GetString(stream.ToArray()).Replace("+", "-").Replace("/", "_").Replace("=", "*");
}
public static object Deseralize(string input)
{
LosFormatter los = new LosFormatter(true, macKeyModifier);
MemoryStream stream = new MemoryStream(Encoding.ASCII.GetBytes(input.Replace("-", "+").Replace("_", "/").Replace("*", "=")));
return los.Deserialize(stream);
}
}
}